﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;

namespace MyFirstWCF
{
    class Program
    {
        static void Main(string[] args)
        {
            //使用serviceHost 
            ServiceHost host = new ServiceHost(typeof(TeachService));
            host.Open();

            Console.Write("WCF Servcie is started!");
            Console.Read();

            
        }
    }
}
